package com.itheima.tlias84.controller;

import com.itheima.tlias84.service.EmpService;
import com.itheima.tlias84.utils.ResultUtil;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping("report")
public class ReportListController {
    @Resource
    EmpService empService;
    @GetMapping("/empJobData")
    public ResultUtil countEmpByJob(){
        return empService.countEmpByJob();
    }
}
